package org.example.myleet.p1624;

import org.example.myleet.Utils.Assert;

public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        Assert.isTrue(18 == solution.maxLengthBetweenEqualCharacters("mgntdygtxrvxjnwksqhxuxtrv"));
        Assert.isTrue(6 == solution.maxLengthBetweenEqualCharacters("scayofdzca"));
        Assert.isTrue(0 == solution.maxLengthBetweenEqualCharacters("aa"));
        Assert.isTrue(2 == solution.maxLengthBetweenEqualCharacters("abca"));
        Assert.isTrue(-1 == solution.maxLengthBetweenEqualCharacters("cbzxy"));
        Assert.isTrue(4 == solution.maxLengthBetweenEqualCharacters("cabbac"));
    }
}
